package lab01;

public class Test10 {
    public static void main(String[] args) {
        int letter = 65;
        for (int row = 1;row <= 4;row++) {
            int space =(8 - (2 * row))/2;
            for(int spaces = 1;spaces <= space;spaces++) {
                System.out.print("  ");
            }
            for (int number = 1;number <= row;number++) {
                System.out.print((char)(letter) + "   ");
                letter=letter+1;
            }
            System.out.println();
        }
        for (int row = 4;row >= 1;row--) {
            int space =(8 - (2 * row))/2;
            for(int spaces = 1;spaces <= space;spaces++) {
                System.out.print("  ");
            }
            for (int number = 1;number <= row;number++) {
                System.out.print((char)(letter) + "   ");
                letter=letter+1;
            }
            System.out.println();
        }
    }
}
